// 登录模块
import Lodash from 'lodash'

 const login_module = {
    state: {
        userInfo: JSON.parse(localStorage.getItem('userInfo')),
        sysInfo: null
    },
    mutations: {
        setUserInfo(state, data) {
            //设置用户信息
            Lodash.merge(state.userInfo, data)
            // state.userinfo = data
        },
        setSysInfo(state, val) {
            //设置系统信息
            state.sysInfo = val
        },
    },
    getters: {},
    actions: {}
}

export default login_module